package com.itheima.C01;

import java.util.Scanner;

/**
 * 需求：接收键盘录入的字符串类型age
 * 对输入的年纪+1
 * 打印输出
 */

public class Test {
 //   Integer age=new Scanner(System.in).nextInt();
    public static void main(String[] args) {

    Scanner sc=new Scanner(System.in);
        System.out.println("请输入年龄：");
        String ageString=sc.next();
         Integer age=Integer.parseInt(ageString);
         Integer age1=Integer.valueOf(ageString);
        System.out.println("年龄。，+1："+(age+1));
        System.out.println("年龄。，+1："+(age1+1));
    }
}
